import type { ArmorsModel, ResultModel, PageResultModel ,RoomCardModel,RCResult} from '@/api/model/model'
import request from '@/utils/request'


export const queryRoomCardPageApi = () => request.get<any,RCResult>(`/roomCard/roomCardList`)

export const queryRoomCardByIdApi = (id: number) => request.get<any, ResultModel>(`/roomCard/getRoomCardById/${id}`)

export const updateApi = (roomCard:RoomCardModel) => request.post<any, ResultModel>(`/roomCard/roomCardAddOrUpdate`, roomCard)
export const addApi = (roomCard:RoomCardModel) => request.post<any, ResultModel>(`/roomCard/roomCardAddOrUpdate`, roomCard)

export const deleteApi = (id: number) => request.delete<any, ResultModel>(`/roomCard/roomCardDelById/${id}`)
export const batchDeleteApi = (ids: (number| undefined)[]) => request.post<any, ResultModel>(`/roomCard/roomCardBatchDelById`,ids)